<?php
class Zendvn_Cache{
	
	public static  function factory($options = null){
		
		$frontendOptions = array('lifetime' => 7200,'automatic_serialization' => true);
		
		if(!empty($options['cache_dir'])){
			$cacheDir = CACHE_PATH . '/' . $options['cache_dir'];
			$backendOptions = array('cache_dir' => $cacheDir);
		} 
 		
		$cache = Zend_Cache::factory('Core','File',$frontendOptions,$backendOptions);
	}
	
	
}